using System;
using System.Diagnostics;
using Microsoft.Build.Evaluation;
using contracts.projects;

namespace projectfile
{
    public class ProjectReader : IProjectLesen
    {
        public void In_Process(string filename) {
            Trace.TraceInformation("Reading project file {0}", filename);
            var project = new Project(filename);
            Out_Result(project);
            project.ProjectCollection.UnloadProject(project);
        }

        public event Action<Project> Out_Result;
    }
}